package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

/***************
 *author: autogen
 *version: 2016-08-13 20:11:30.917
 */
@Entity
@Table(name = "CHANNEL_DEF")
public class ChannelDef implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "CHANNEL_DEF";

    /**${param.comment} */
	public static final String ALIAS_CHANNEL_ID = "CHANNEL_ID";
    /**${param.comment} */
	public static final String ALIAS_CHANNEL_NAME = "CHANNEL_NAME";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_EFFECTIVE_DATE = "EFFECTIVE_DATE";
    /**${param.comment} */
	public static final String ALIAS_EXPIRE_DATE = "EXPIRE_DATE";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_REMARK = "REMARK";
	
	

 	@Id  
	@Column(name = "CHANNEL_ID", unique = true, nullable = false)
    public java.lang.Long channelId;
  
 	@Column(name = "CHANNEL_NAME")
    public java.lang.String channelName;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
    public java.util.Date createDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EFFECTIVE_DATE")
    public java.util.Date effectiveDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EXPIRE_DATE")
    public java.util.Date expireDate;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Column(name = "REMARK")
    public java.lang.String remark;
  





	public java.lang.Long getChannelId() {
		return this.channelId;
	}
	
	public void setChannelId(java.lang.Long value) {
		this.channelId = value;
	}

	public java.lang.String getChannelName() {
		return this.channelName;
	}
	
	public void setChannelName(java.lang.String value) {
		this.channelName = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getEffectiveDate() {
		return this.effectiveDate;
	}
	
	public void setEffectiveDate(java.util.Date value) {
		this.effectiveDate = value;
	}

	public java.util.Date getExpireDate() {
		return this.expireDate;
	}
	
	public void setExpireDate(java.util.Date value) {
		this.expireDate = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}


	
	public ChannelDef() {
	}
	
	public ChannelDef(boolean qryflag) {
	    if(qryflag){
	    		this.channelId = null;
				this.channelName = null;
				this.createDate = null;
				this.effectiveDate = null;
				this.expireDate = null;
				this.state = null;
				this.remark = null;
			    }
	}


	public ChannelDef(
	    java.lang.Long inChannelId,
	    java.lang.String inChannelName,
	    java.util.Date inCreateDate,
	    java.util.Date inEffectiveDate,
	    java.util.Date inExpireDate,
	    java.lang.Integer inState,
		java.lang.String inRemark
	 ) {
		super();
				this.channelId = inChannelId;
				this.channelName = inChannelName;
				this.createDate = inCreateDate;
				this.effectiveDate = inEffectiveDate;
				this.expireDate = inExpireDate;
				this.state = inState;
				this.remark = inRemark;
			}

 


}

